package com.wulijie.xiangyuan;

import java.util.HashMap;

/**
 * @Author cui
 * @Data
 */
public class WebFactory {

    private HashMap<String, WebSiteOther> hashMap = new HashMap<>();
    public WebFactory() {
    }

    public WebSite getTarget(String type) {
        return hashMap.computeIfAbsent(type, k ->new WebSiteOther(type));
    }

    public int thisCount(){
        return hashMap.size();
    }
}
